package soar.test.thread.notify;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class App
{
    private static final Logger logger = LoggerFactory
            .getLogger(App.class);

    public static void main(String[] args)
    {
        new App().run();
    }

    private void run()
    {
        try
        {
            Receiver[] receivers=new Receiver[3];
            for(int i=0; i<receivers.length; i++)
            {
                Receiver receiver=new Receiver();
                receivers[i]=receiver;
                receiver.start();
            }
            
            Sender sender = new Sender(receivers);
            sender.start();
        }
        catch (Exception e)
        {
            logger.info("fail, {}", e);
            return;
        }
    }
}
